Release 10.1A: OpenEdge Development:
Progress 4GL Handbook


Using dynamic buffers and buffer handles

You can create a dynamic buffer at run time in much the same way that you create a dynamic query, using this syntax:

CREATE BUFFER buffer-handle FOR TABLE table-expression. 

The table-expression can be either a literal database table or temp-table name (both in quotation marks) or a variable or other expression that evaluates to a table or temp-table at run time.

You can also access the handle of any static buffer at run time:

buffer-handle = BUFFER buffer-name:HANDLE. 

Dynamic buffers are useful only when you really need to define the table name for a buffer at run time. Just as with dynamic queries, you will find that in many cases you can simply get the handle to a static buffer and use that handle’s attributes and methods to manipulate the buffer dynamically, without creating a dynamic buffer at all.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095